<?php
// 处理发货信息
// header("content-type:text/html;charset=utf-8");
include_once("conn.php");

$id = $_GET['id'];
//设置默认时区
date_default_timezone_set('PRC');
$now_date = date('Y-m-d H:i:s');
$sql = "UPDATE tb_order_info SET o_status = 1, o_shippedtime = '".$now_date."' WHERE id = '".$id."'";
$result = mysqli_query($conn, $sql);
if($result){
    echo "<script>alert('发货成功！');window.location.href='../a_deal_order.php';</script>";
}else{
    echo "<script>alert('发货失败！');history.go(-1);</script>";
}